

<script type="text/javascript">

function dataVali(form){
	var errorCount = formVali(form);
	if(errorCount != 0){
		var messageButton = $('#messageButtonId');
		messageButton.attr("data-noty-options", '{"text":"有'+errorCount+'错误，请修正！","layout":"bottom","type":"information","closeButton":"true"}');
		messageButton.click();
 		return false;
	}
	
	ajaxForm("editForm");
}

</script>

<fieldset>
	<div class="control-group">
		<label class="control-label">模块</label>
		<div class="controls">
			<input type="hidden" id="moduleId" name="operator.moduleids" value="${escapeXml(operator.moduleids!)}"/>
			<input type="text" id="moduleName" name="operator.modulenames" value="${escapeXml(operator.modulenames!)}" 
				class="input-xlarge focused" readonly="readonly" maxlength="100" vMin="1" vType="length" onblur="onblurVali(this);">
			<button class="btn" type="button" onclick="moduleRadioDiaLog('moduleId', 'moduleName', '${escapeXml(operator.moduleids!)}');">选择</button>
			<span class="help-inline"></span>
		</div>
	</div>
	<div class="control-group">
		<label class="control-label">名称</label>
		<div class="controls">
			<input type="text" name="operator.names" value="${escapeXml(operator.names!)}" 
				class="input-xlarge" maxlength="25" vMin="2" vType="chinaLetterNumber" onblur="onblurVali(this);">
			<span class="help-inline">2-25位中文字母数字</span>
		</div>
	</div>
	<div class="control-group">
		<label class="control-label">是否权限验证</label>
		<div class="controls">
			<select name="operator.privilege" class="combox">
				<option value="1" ${operator.privilege! == "1" ? "selected='selected'":"" }>是</option>
				<option value="0" ${operator.privilege! == "0" ? "selected='selected'":"" }>否</option>
			</select>
			<span class="help-inline"></span>
		</div>
	</div>
	<div class="control-group">
		<label class="control-label">操作URL</label>
		<div class="controls">
			<input type="text" name="operator.url" value="${escapeXml(operator.url!)}" 
				class="input-xlarge" maxlength="200" vMin="1" vType="length" onblur="onblurVali(this);">
			<span class="help-inline">1-200位字符</span>
		</div>
	</div>
	<div class="control-group">
		<label class="control-label">是否分页</label>
		<div class="controls">
			<select name="operator.splitpage" class="combox">
				<option value="0" ${operator.splitpage! == "0" ? "selected='selected'":"" }>否</option>
				<option value="1" ${operator.splitpage! == "1" ? "selected='selected'":"" }>是</option>
			</select>
			<span class="help-inline"></span>
		</div>
	</div>
	<div class="control-group">
		<label class="control-label">是否需要行级过滤</label>
		<div class="controls">
			<select name="operator.rowfilter" class="combox">
				<option value="0" ${operator.rowfilter! == "0" ? "selected='selected'":"" }>否</option>
				<option value="1" ${operator.rowfilter! == "1" ? "selected='selected'":"" }>是</option>
			</select>
			<span class="help-inline"></span>
		</div>
	</div>
	<div class="control-group">
		<label class="control-label">表单重复提交验证</label>
		<div class="controls">
			<select name="operator.formtoken" class="combox">
				<option value="0" ${operator.formtoken! == "0" ? "selected='selected'":"" }>否</option>
				<option value="1" ${operator.formtoken! == "1" ? "selected='selected'":"" }>是</option>
			</select>
			<span class="help-inline"></span>
		</div>
	</div>
	<div class="control-group">
		<label class="control-label">IP黑名单验证</label>
		<div class="controls">
			<select name="operator.ipblack" class="combox">
				<option value="0" ${operator.ipblack! == "0" ? "selected='selected'":"" }>否</option>
				<option value="1" ${operator.ipblack! == "1" ? "selected='selected'":"" }>是</option>
			</select>
			<span class="help-inline"></span>
		</div>
	</div>
	<div class="control-group">
		<label class="control-label">操作完成返回url</label>
		<div class="controls">
			<input type="text" name="operator.returnurl" value="${escapeXml(operator.returnurl!)}" 
				class="input-xlarge" maxlength="200" vMin="0" vType="length" onblur="onblurVali(this);">
			<span class="help-inline"></span>
		</div>
	</div>
	<div class="control-group">
		<label class="control-label">返回参数keys</label>
		<div class="controls">
			<input type="text" name="operator.returnparamkeys" value="${escapeXml(operator.returnparamkeys!)}" 
				class="input-xlarge" maxlength="100" vMin="0" vType="length" onblur="onblurVali(this);">
			<span class="help-inline"></span>
		</div>
	</div>
</fieldset>